package day2.demo1;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {


    ClassPathXmlApplicationContext a;
    @Before
    public void init(){
        a = new ClassPathXmlApplicationContext("day2/demo1.xml");
    }

    @Test
    public void m2(){
//        System.out.println(a.getBean(UserService.class).getClass().getName());
//        System.out.println(UserServiceImpl.class.getName());
        a.getBean(UserService.class).login("a1","123");

    }

}
